package cn.buk.tms.hotel.dto;

import java.util.ArrayList;
import java.util.List;

/**
 * 基础房型DTO
 * @author yfdai
 */
public class HotelRoomTypeDto {

    /**
     * 基础房型id（本地id)
     */
    private int roomTypeId;

    /**
     * 供应商的基础房型id
     */
    private int supplierRoomTypeId;

    /**
     * RoomTypeName属性：房型名称
     */
    private String roomTypeName;

    /**
     * 楼层
     */
    private String floorRange;

    /**
     * 面积
     */
    private String areaRange;

    /**
     *有窗无窗 0表示无窗，1表示部分有窗，2表示有窗，null表示有窗
     */
    private int hasWindow;

    /**
     * 房型数量
     */
    private int roomQuantity;

    private List<HotelRatePlanDto> ratePlans;

    /**
     * 基础房型的最低价
     */
    private Double lowestPrice;

    public int getRoomTypeId() {
        return roomTypeId;
    }

    public void setRoomTypeId(int roomTypeId) {
        this.roomTypeId = roomTypeId;
    }

    public String getRoomTypeName() {
        return roomTypeName;
    }

    public void setRoomTypeName(String roomTypeName) {
        this.roomTypeName = roomTypeName;
    }

    public String getFloorRange() {
        return floorRange;
    }

    public void setFloorRange(String floorRange) {
        this.floorRange = floorRange;
    }

    public String getAreaRange() {
        return areaRange;
    }

    public void setAreaRange(String areaRange) {
        this.areaRange = areaRange;
    }

    public int getHasWindow() {
        return hasWindow;
    }

    public void setHasWindow(int hasWindow) {
        this.hasWindow = hasWindow;
    }

    public int getRoomQuantity() {
        return roomQuantity;
    }

    public void setRoomQuantity(int roomQuantity) {
        this.roomQuantity = roomQuantity;
    }

    public List<HotelRatePlanDto> getRatePlans() {
        if (ratePlans == null) {
            ratePlans = new ArrayList<>();
        }
        return ratePlans;
    }

    public void setRatePlans(List<HotelRatePlanDto> ratePlans) {
        this.ratePlans = ratePlans;
    }

    public int getSupplierRoomTypeId() {
        return supplierRoomTypeId;
    }

    public void setSupplierRoomTypeId(int supplierRoomTypeId) {
        this.supplierRoomTypeId = supplierRoomTypeId;
    }

    public Double getLowestPrice() {
        return lowestPrice;
    }

    public void setLowestPrice(Double lowestPrice) {
        this.lowestPrice = lowestPrice;
    }
}
